def digit(s):
    count = 0
    for i in range(len(s)):
        m = s[i]
        if m.isdigit():
            count += 1
    return count


string = input()
n = digit(string)
print(n) 